package coreentity

import "core/datetime"

type HtFile struct {
	Id          int64  `json:"id,string"                         gorm:"column:id;primaryKey;comment:主键;autoIncrement:false;"`
	Bid         int64  `json:"bid,string"                    gorm:"column:bid;DEFAULT:0;not null;comment:业务编号;"`
	Btype       string `json:"btype"      validate:"max=40"   gorm:"column:btype;size:40;DEFAULT:'';not null;comment:业务类型;"`
	ContentType string `json:"contentType"      validate:"max=20"   gorm:"column:content_type;size:20;DEFAULT:'';not null;comment:类型;"`

	Url string `json:"url"      validate:"max=200"   gorm:"column:name;size:200;DEFAULT:'';not null;comment:完整路径;"`

	Name string `json:"name"      validate:"max=100"   gorm:"column:name;size:100;DEFAULT:'';not null;comment:原文件名;"`
	Memo string `json:"memo"      validate:"max=100"   gorm:"column:name;size:100;DEFAULT:'';not null;comment:备注;"`

	CrtDt   datetime.MyTime    `json:"crtDt"                            gorm:"column:crt_dt;not null;comment:创建日期;"`
	CrtUid  int64              `json:"crtUid,string"                    gorm:"column:crt_uid;DEFAULT:0;not null;comment:创建人编号;"`
	CrtDid  int64              `json:"crtDid,string"                    gorm:"column:crt_did;DEFAULT:0;not null;comment:机构编号;"`
	EdtDt   datetime.MyTime    `json:"edtDt"                            gorm:"column:edt_dt;not null;comment:修改日期;"`
	EdtUid  int64              `json:"edtUid,string"                    gorm:"column:edt_uid;DEFAULT:0;not null;comment:修改人编号;"`
	Gid     string             `json:"gid"                              gorm:"column:gid;DEFAULT:'';type:char(36);not null;comment:Gid;"`
	Deleted datetime.DeletedAt `json:"deleted"                          gorm:"column:deleted;DEFAULT:0;type:tinyint(1);not null;comment:删除标志;"`
}
